package com.xie.wechat.chat;

import com.alibaba.fastjson.JSON;

public class Chat {
    private Integer userId;
    private String userName;
    private Msg userMsg;



    public Chat(Integer userId, String userName, int userImg) {
        this.userId = userId;
        this.userName = userName;

    }

    public Chat() {
    }

    public Chat(Integer userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public Chat(Integer userId, String userName, Msg userMsg) {
        this.userId = userId;
        this.userName = userName;
        this.userMsg = userMsg;
    }

    public Chat(Integer userId, String userName, int userImg, Msg userMsg) {
        this.userId = userId;
        this.userName = userName;

        this.userMsg = userMsg;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Msg getUserMsg() {
        return userMsg;
    }

    public void setUserMsg(Msg userMsg) {
        this.userMsg = userMsg;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
